<?php

/*CHMOD*/
define('MOD_FOLDER_DEFAULT', 0755);
define('MOD_FOLDER_WRITEABLE', 0777);

define('MOD_FILE_DEFAULT', 0644);
define('MOD_FILE_WRITEABLE', 0777);

define('UPLOAD_MAX_FILE_SIZE', "50000000");

define('MAX_TEMPLATES', 3);
/**
 * DATE TIME DATABASE FORMAT
 * is default date-time format on mysql
 */
define('DT_DB_FULL',"Y-m-d H:i:s");
define('DT_DB_DATE',"Y-m-d");
define('DT_DB_TIME',"H:i:s");

/**
 * *******************
 * *URL - PATH CONFIG*
 * *******************
 */
/*forder*/
define('FOLDER_CACHE', "_cache/");
define('FOLDER_CONTROL', "_control/");
define('FOLDER_MODEL', "_model/");
define('FOLDER_SQL', "_sql/");
define('FOLDER_VIEW', "_view/");

define('FOLDER_INCLUDE', "includes/");
define('FOLDER_MODULE', "modules/");

define('FOLDER_TEMPLATE', "templates/");

define('FOLDER_HOME', "");
define('FOLDER_ADMIN', "");


define('FOLDER_IMAGE', "images/");
define('FOLDER_UPLOAD', "upload/");
define('FOLDER_UPLOAD_PRODUCT', "product_image/");
define('FOLDER_UPLOAD_PACKET', "packet_image/");
define('FOLDER_THUMB', "thumbnails/");
define('FOLDER_THUMB_3_2', "thumb300x200/");

define('FOLDER_FONT', "font/");
define('FOLDER_CSS', "css/");
define('FOLDER_JS', "js/");
define('DEFAUL_IMAGE', "no_image.gif");

/**
 * FOLDER THEME && LANGUAGE
 */
define('FOLDER_LANGUAGE',"jp/");
/*url*/
define('URL_SITE', HOST_ADDR . REMOTE_PATH);
define('URL_SITE_ADMIN', URL_SITE . FOLDER_ADMIN);
define('URL_SITE_HOME', URL_SITE . FOLDER_HOME);

define('URL_UPLOAD', URL_SITE . FOLDER_UPLOAD);
define('URL_UPLOAD_PRODUCT', URL_SITE . FOLDER_UPLOAD.FOLDER_UPLOAD_PRODUCT);
define('URL_UPLOAD_PRODUCT_THUMB', URL_SITE . FOLDER_UPLOAD.FOLDER_UPLOAD_PRODUCT.FOLDER_THUMB);
define('URL_UPLOAD_PACKET_THUMB', URL_SITE . FOLDER_UPLOAD.FOLDER_UPLOAD_PACKET.FOLDER_THUMB_3_2);
define('URL_UPLOAD_PRODUCT_THUMB_3_2', URL_SITE . FOLDER_UPLOAD.FOLDER_UPLOAD_PRODUCT.FOLDER_THUMB);

define('URL_CSS', URL_SITE . FOLDER_CSS);
define('URL_JS', URL_SITE . FOLDER_JS);

define('URL_TEMPLATE_HOME',URL_SITE . FOLDER_TEMPLATE . FOLDER_HOME);
define('URL_TEMPLATE_ADMIN',URL_SITE . FOLDER_TEMPLATE . FOLDER_ADMIN);
define('URL_TEMPLATE',URL_SITE . FOLDER_TEMPLATE);

/*path*/
define("PATH_DATABASE",PATH_ROOT.FOLDER_INCLUDE."database/");
define("PATH_CLASSES",PATH_ROOT.FOLDER_INCLUDE."class/");
//Define path of control**************************************
define('PATH_CONTROL', PATH_ROOT . FOLDER_CONTROL);
define('PATH_CONTROL_HOME', PATH_CONTROL . FOLDER_HOME);
define('PATH_CONTROL_ADMIN', PATH_CONTROL . FOLDER_ADMIN);

//************* Define path Model 8*********************
define('PATH_MODEL', PATH_ROOT . FOLDER_MODEL);

//************* Define pathSQl********************
define('PATH_SQL', PATH_ROOT . FOLDER_SQL);

//************** Define Path view  *****************
define('PATH_VIEW', PATH_ROOT . FOLDER_VIEW);
define('PATH_VIEW_HOME', PATH_VIEW . FOLDER_HOME);
define('PATH_VIEW_ADMIN', PATH_VIEW . FOLDER_ADMIN);

define('PATH_INCLUDE', PATH_ROOT . FOLDER_INCLUDE);
define('PATH_TEMPLATE', PATH_ROOT . FOLDER_TEMPLATE);
define('PATH_TEMPLATE_HOME', PATH_TEMPLATE . FOLDER_HOME);
define('PATH_TEMPLATE_ADMIN', PATH_TEMPLATE . FOLDER_ADMIN);



define('PATH_IMAGE', PATH_ROOT . FOLDER_IMAGE);
define('PATH_UPLOAD', PATH_ROOT . FOLDER_UPLOAD);
define('PATH_UPLOAD_PRODUCT', PATH_ROOT . FOLDER_UPLOAD. FOLDER_UPLOAD_PRODUCT );
define('PATH_UPLOAD_PACKET', PATH_ROOT . FOLDER_UPLOAD. FOLDER_UPLOAD_PACKET );

define('PATH_FONT', PATH_ROOT . FOLDER_FONT);

define('PAGING_SIZE',10);
define('PAGING_GROUP_SIZE',5);
define('PAGING_STYLESHEET',"paging");
define('PAGING_IMAGE_ASC',URL_TEMPLATE_ADMIN . "image/uparrow-1.png");
define('PAGING_IMAGE_DESC',URL_TEMPLATE_ADMIN . "image/downarrow-1.png");

